package hu.tortavar.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Widget;

public class EgeszTortakViewImpl extends Composite {

	private static EgeszTortakViewImplUiBinder uiBinder = GWT
			.create(EgeszTortakViewImplUiBinder.class);

	interface EgeszTortakViewImplUiBinder extends
			UiBinder<Widget, EgeszTortakViewImpl> {
	}

	public EgeszTortakViewImpl() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiField Image imageOfProduct;
	@UiField HTML titleOfProduct;
	@UiField HTML descriptionOfProduct;

	public void setEgeszTortaElement(String imageURL, String title, String description) {
		imageOfProduct.setUrl(imageURL);
		titleOfProduct.setHTML(title);
		descriptionOfProduct.setHTML(description);
	}
}
